|
Public Member Functions |
| virtual XFCIMPORT | ~XFcPrimitiveTranslator () |
| | Destructor.
|
| XFCIMPORT void | setRenderTarget (XFcGLSurface *aRenderTarget) |
| | Sets the surface for rendering.
|
| XFCIMPORT XFcGLSurface * | getRenderTarget () |
| | Returns the rendering surface.
|
| XFCIMPORT void | setRenderer (XFcPrimitiveDraw *aRenderer) |
| | Sets the XFcPrimitiveDraw to be used for rendering.
|
| XFCIMPORT void | setClipRect (XFcRectangle *aClipRect) |
| | Sets the clipping rectangle to be used for rendering.
|
| XFCIMPORT void | setTransformation (XFcMatrix3 &aTransformation) |
| | Sets the transformation matrix for transforming the primitives.
|
| XFCIMPORT void | setCurveSmoothLength (REAL aSmoothness) |
| | Sets the smoothness for the curve approximation.
|
| XFCIMPORT void | setFillGradient (XFcPrimitiveDrawGradientFiller *aGradient) |
| | Sets the gradient filler to be used for filling.
|
| XFCIMPORT void | setStrokeGradient (XFcPrimitiveDrawGradientFiller *aGradient) |
| | Sets the gradient filler to be used for stroking.
|
| XFCIMPORT void | setFillImage (XFcPrimitiveDrawImageFiller *aImageFiller) |
| | Sets the image filler to be used for filling.
|
| XFCIMPORT void | setStrokeImage (XFcPrimitiveDrawImageFiller *aImageFiller) |
| | Sets the image filler to be used for stroking.
|
| XFCIMPORT void | setFillPattern (XFcPrimitiveDrawPatternFiller *aPattern) |
| | Sets the pattern filler to be used for filling.
|
| XFCIMPORT void | setStrokePattern (XFcPrimitiveDrawPatternFiller *aPattern) |
| | Sets the pattern filler to be used for stroking.
|
| XFCIMPORT void | setFillColor (UINT32 aColor) |
| | Sets the color to be used for filling. Color is in X8R8G8B8 format.
|
| XFCIMPORT void | setStrokeColor (UINT32 aColor) |
| | Sets the color to be used for stroking. Color is in X8R8G8B8 format.
|
| XFCIMPORT void | setFillOff () |
| | Sets the filling off.
|
| XFCIMPORT void | setStrokeOff () |
| | Sets the stroking off.
|
| XFCIMPORT void | setFillOpacity (UINT8 aOpacity) |
| | Sets the opacity for filling.
|
| XFCIMPORT void | setStrokeOpacity (UINT8 aOpacity) |
| | Sets the opacity for stroking.
|
| XFCIMPORT void | setFillRule (INT32 aFillRule) |
| | Sets the fill rule for filling.
|
| XFCIMPORT void | setStrokeWidth (REAL aWidth) |
| | Sets the stroke width.
|
| XFCIMPORT void | setLineCap (INT32 aLineCap) |
| | Sets the line cap style.
|
| XFCIMPORT void | setLineJoin (INT32 aLineJoin) |
| | Sets the line join style.
|
| XFCIMPORT void | setMiterLimit (REAL aMiterLimit) |
| | Sets the miter limit.
|
| XFCIMPORT void | setDashArray (REAL *aDashArray, INT32 aLength) |
| | Sets the dash array for dashing.
|
| XFCIMPORT void | setDashOffset (REAL aDashOffset) |
| | Sets the dash offset for dashing.
|
| XFCIMPORT void | setAntialiasing (INT aState) |
| | Sets the antialiasing mode (TRUE / FALSE).
|
| XFCIMPORT void | beginPath () |
| | Starts a path command.
|
| XFCIMPORT void | endPath () |
| | Ends a path command. The path will be rendered to the canvas.
|
| XFCIMPORT void | moveToAbsolute (XFcVector2 &aPos) |
| | Moves the pointer to an absolute position.
|
| void | moveToAbsolute (REAL aX, REAL aY) |
| | Moves the pointer to an absolute position.
|
| XFCIMPORT void | moveToRelative (XFcVector2 &aPos) |
| | Moves the pointer relatively to the previous position.
|
| void | moveToRelative (REAL aX, REAL aY) |
| | Moves the pointer relatively to the previous position.
|
| XFCIMPORT void | lineToAbsolute (XFcVector2 &aPos) |
| | Draws a line from previous position to a new position.
|
| void | lineToAbsolute (REAL aX, REAL aY) |
| | Draws a line from previous position to a new position.
|
| XFCIMPORT void | lineToRelative (XFcVector2 &aPos) |
| | Draws a line in relation to the previous position.
|
| void | lineToRelative (REAL aX, REAL aY) |
| | Draws a line in relation to the previous position.
|
| XFCIMPORT void | horizontalLineToAbsolute (REAL aX) |
| | Draws a horizontal line from the previous position to a new x position.
|
| XFCIMPORT void | horizontalLineToRelative (REAL aX) |
| | Draws a horizontal line in relation to the previous position.
|
| XFCIMPORT void | verticalLineToAbsolute (REAL aY) |
| | Draws a vertical line from the previous position to a new y position.
|
| XFCIMPORT void | verticalLineToRelative (REAL aY) |
| | Draws a vertical line in relation to the previous position.
|
| XFCIMPORT void | curveToAbsolute (XFcVector2 &aCP1, XFcVector2 &aCP2, XFcVector2 &aPos) |
| | Draws a cubic bezier curve from the previous position to a new position with two control points.
|
| void | curveToAbsolute (REAL aXCP1, REAL aYCP1, REAL aXCP2, REAL aYCP2, REAL aX, REAL aY) |
| | Draws a cubic bezier curve from the previous position to a new position with two control points.
|
| XFCIMPORT void | curveToRelative (XFcVector2 &aCP1, XFcVector2 &aCP2, XFcVector2 &aPos) |
| | Draws a cubic bezier curve in relation to the previous position.
|
| void | curveToRelative (REAL aXCP1, REAL aYCP1, REAL aXCP2, REAL aYCP2, REAL aX, REAL aY) |
| | Draws a cubic bezier curve in relation to the previous position.
|
| XFCIMPORT void | smoothCurveToAbsolute (XFcVector2 &aCP2, XFcVector2 &aPos) |
| | Draws a cubic bezier curve from the previous position to a new position using a mirror of the previous control point and one new control point.
|
| void | smoothCurveToAbsolute (REAL aXCP2, REAL aYCP2, REAL aX, REAL aY) |
| | Draws a cubic bezier curve from the previous position to a new position using a mirror of the previous control point and one new control point.
|
| XFCIMPORT void | smoothCurveToRelative (XFcVector2 &aCP2, XFcVector2 &aPos) |
| | Draws a cubic bezier curve in relation to the previous position using a mirror of the previous control point and one new control point.
|
| void | smoothCurveToRelative (REAL aXCP2, REAL aYCP2, REAL aX, REAL aY) |
| | Draws a cubic bezier curve in relation to the previous position using a mirror of the previous control point and one new control point.
|
| XFCIMPORT void | quadraticCurveToAbsolute (XFcVector2 &aCP, XFcVector2 &aPos) |
| | Draws a quadratic bezier curve from the previous position to a new position using one control point.
|
| void | quadraticCurveToAbsolute (REAL aXCP, REAL aYCP, REAL aX, REAL aY) |
| | Draws a quadratic bezier curve from the previous position to a new position using one control point.
|
| XFCIMPORT void | quadraticCurveToRelative (XFcVector2 &aCP, XFcVector2 &aPos) |
| | Draws a quadratic bezier curve in relation to the previous position using one control point.
|
| void | quadraticCurveToRelative (REAL aXCP, REAL aYCP, REAL aX, REAL aY) |
| | Draws a quadratic bezier curve in relation to the previous position using one control point.
|
| XFCIMPORT void | smoothQuadraticCurveToAbsolute (XFcVector2 &aPos) |
| | Draws a quadratic bezier curve from the previous position to a new position using a mirror of the previous control point.
|
| void | smoothQuadraticCurveToAbsolute (REAL aX, REAL aY) |
| | Draws a quadratic bezier curve from the previous position to a new position using a mirror of the previous control point.
|
| XFCIMPORT void | smoothQuadraticCurveToRelative (XFcVector2 &aPos) |
| | Draws a quadratic bezier curve in relation to the previous position using a mirror of the previous control point.
|
| void | smoothQuadraticCurveToRelative (REAL aX, REAL aY) |
| | Draws a quadratic bezier curve in relation to the previous position using a mirror of the previous control point.
|
| XFCIMPORT void | ellipticalArcAbsolute (XFcVector2 &aRadii, REAL aRotation, UINT32 aFlags, XFcVector2 &aPos) |
| | Draws an ellipical arc. See SVG 1.0 Specification for explanation.
|
| void | ellipticalArcAbsolute (REAL aRadiusX, REAL aRadiusY, REAL aRotation, UINT32 aFlags, REAL aX, REAL aY) |
| | Draws an ellipical arc. See SVG 1.0 Specification for explanation.
|
| XFCIMPORT void | ellipticalArcRelative (XFcVector2 &aRadii, REAL aRotation, UINT32 aFlags, XFcVector2 &aPos) |
| | Draws an ellipical arc. See SVG 1.0 Specification for explanation.
|
| void | ellipticalArcRelative (REAL aRadiusX, REAL aRadiusY, REAL aRotation, UINT32 aFlags, REAL aX, REAL aY) |
| | Draws an ellipical arc. See SVG 1.0 Specification for explanation.
|
| XFCIMPORT void | closePath () |
| | Closes the path with a straight line.
|
| XFCIMPORT void | getEdgeInfo (REAL aPos, XFcVector2 *aPosition, XFcVector2 *aDirection) |
| | After the endpath command has been issued, it is possible to find a point on the edge of the path.
|
Static Public Member Functions |
| XFCIMPORT XFcPrimitiveTranslator * | create () |
| | Static constructor.
|
Protected Member Functions |
| | XFcPrimitiveTranslator () |
| | Protected constructor.
|
| void | calculateStroking () |
| | Calculates the stroke from mPoints and mLineIndicies to mEdgepoints, mEdgeJoins and mEdgeLineIndicies.
|
| void | calculateFilling () |
| | Calculates the filling for the path by closing all gaps.
|
| void | calculateEdgeLengths () |
| | Calcultaes the edge length array from mPoints and mLineIndicies.
|
| void | calculatePerceivedValues () |
| | Calculates the perceived values of stroke width, opacity, caps and joins for very thin lines.
|
| void | createDash (XFcPrimitiveDrawPointSet *aPoints, XFcPrimitiveDrawLineSet *aLines, XFcPrimitiveTranslatorLengths *aEdgeLengths, XFcPrimitiveTranslatorFlags *aLineFlags) |
| void | createRoundingCircle () |
| | Creates the circle to be used for rounded caps and joins.
|
| void | resetCircleArray (INT32 aArraySize) |
| | Creates an array of XFcPrimitiveDrawIndexedPrimitives to be used for rounded caps and joins.
|
| void | deleteCircleArray () |
| | Deletes the circle array.
|
| void | addRoundingCircle (XFcVector2 &aPos) |
| | Adds the rounding circle to the path being drawn.
|
Protected Attributes |
| XFcRectangle * | mClipRect |
| XFcGLSurface * | mRenderTarget |
| XFcPrimitiveDraw * | mRenderer |
| XFcMatrix3 | mTransformation |
| REAL | mCurveSmooth |
| INT32 | mFillMode |
| INT32 | mStrokeMode |
| UINT32 | mFillColor |
| UINT32 | mStrokeColor |
| UINT8 | mFillOpacity |
| UINT8 | mStrokeOpacity |
| INT32 | mFillRule |
| REAL | mStrokeWidth |
| INT32 | mLineCap |
| INT32 | mLineJoin |
| REAL | mPerceivedStrokeWidth |
| UINT8 | mPerceivedStrokeOpacity |
| INT32 | mPerceivedLineJoin |
| INT32 | mPerceivedLineCap |
| REAL | mMiterLimit |
| REAL * | mDashArray |
| INT32 | mDashArrayLength |
| REAL | mDashOffset |
| XFcPrimitiveDrawPointSet * | mPoints |
| XFcPrimitiveDrawLineSet * | mLineIndicies |
| XFcPrimitiveDrawIndexedPrimitiveSet * | mEdgeJoins |
| XFcPrimitiveDrawPointSet * | mEdgePoints |
| XFcPrimitiveDrawLineSet * | mEdgeLineIndicies |
| UINT32 | mProcessingInfoFlags |
| XFcVector2 | mCurrentPoint |
| XFcVector2 | mLastControlPoint |
| XFcVector2 | mPathStart |
| INT32 | mFirstPoint |
| INT32 | mFirstLine |
| INT32 | mLineCaps |
| XFcPrimitiveTranslatorLengths * | mEdgeLengths |
| XFcPrimitiveTranslatorFlags * | mLineFlags |
| XFcPrimitiveDrawIndexedPrimitive ** | mCircleArray |
| INT32 | mCircleArrayLength |
| INT32 | mCircleIndex |
| REAL | mRoundingCircleSize |
| REAL | mRoundingCircleYPos |
| XFcPrimitiveDrawIndexedPrimitive * | mRoundingCircleLeft |
| XFcPrimitiveDrawIndexedPrimitive * | mRoundingCircleRight |
| INT32 | mInvalidationFlags |
| INT32 | mInsertedLineCount |
| XFcPrimitiveDrawFiller * | mFiller |
| XFcPrimitiveDrawFiller * | mStrokeFiller |
| INT | mAntialiasing |